<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<title>上传文件夹名编辑</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/classfile/id/{$id}';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>

 <body>	
		<layout name="Auth:header" />
        	<div class="container-fluid">
     			<div class="row-fluid">
                	<layout name="Auth:leftmenu" />
                    	<div class="span8">
                          <div class="hero-unit">
                            <h1>更改上传文件夹名</h1>
                            <p style="font-size:12px">当前位置：
                                <a href='__APP__/index/index' >主页</a>>
                                <a href='__URL__/index'  >后台管理</a>>
                                <a href='__URL__/coursedetail'  >教学班管理</a>>
                                <a href='__URL__/classfile/id/{$id}' >作业管理</a>>
                                <a href="" >上传文件夹名编辑</a>
                             </p>
                           </div>
                           
						   <form id='form1' method="post" action="__URL__/pathupdate" >
                                <input type="hidden" name="id" value={$vo.id}>
                                <input type="hidden" name="classid" value={$vo.classid}>
                                <input type="hidden" name="path" value={$vo.pname}>
								<div id='result'></div>	
                                <input class="input-xxlarge disable"  type="text" id="disabledInput" disabled value="文件夹名称:{$vo.pname}">							
                                <input type="text" class="input-xxlarge" name="pname" placeholder="修改文件夹名称"><br>
                                <input type="submit" value="更新" class="btn btn-success">
                           </form>
	
			
			
	</div>
</body>
</html>
